import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:incidentmanager/widgets/alert.dart';

class DialogUtil {
  static void alert(BuildContext context,
      {barrierDismissible = true, msg, type = AlertType.success, confirm}) {
    showDialog(
      context: context,
      barrierDismissible: barrierDismissible,
      builder: (context) => Alert(
        msg: msg,
        type: type,
        confirm: confirm,
      ),
    );
  }
}
